{% extends "myghtyboard/base.html" %}
{% load i18n %}

{% block extra-title %}{% trans "Forum Index" %} :: Tworzenie nowego tematu{% endblock %}

{% block your-position %}
	<a href="/forum/">{% trans "Forum Index" %}</a>
	<span class="color-orange">»</span>
	<a href="/forum/forum/{{forum.id}}">{{ forum.name }}</a>
	<span class="color-orange">»</span>
	Nowy temat
{% endblock %}

{% block content %}
<div>
			    <div class="box-shadow">
                                <div class="box">
                                    <div class="box-header">
                                        <span class="box-header-title">
                                            <img class="box-header-pointer" alt="pointer" src="/site_media/css/gfx/icons/point-transparent.png" />
                                            <span>Dodaj nowy temat</span>
                                        </span>
                                    </div>
                                    <div class="box-content">
                                        <form method="post" action=".">
                                            <fieldset>
						<span class="tag-normal color-orange">Tytuł: </span>{{ form.name }}{% if form.name.errors %}<br />*** {{ form.name.errors|join:", " }}{% endif %}
                                                <textarea class="height-260" name="text"></textarea>
						<b>{% trans "Available Tags" %}</b>: [b], [u], [i], [code]. [url], [img], [quote].<hr />
					  {% if perms.is_staff %}
					  <span class="tag-normal color-orange">{% trans "Options" %}</span><br/>
						{{ form.is_sticky }} <label for="id_is_sticky">{% trans "Sticky" %}</label>{% if form.is_sticky.errors %}<br />*** {{ form.is_sticky.errors|join:", " }}{% endif %}<br />
						{{ form.is_global }} <label for="id_is_global">{% trans "Global" %}</label>{% if form.is_global.errors %}<br />*** {{ form.is_global.errors|join:", " }}{% endif %}
					 
					  {% endif %}				      
                                                    <p class="right">
                                                        <span class="button-border">
                                                            <input type="submit" name="save" value="dodaj temat" />
                                                        </span>
                                                    </p>
                                            </fieldset>
                                        </form>
                                    </div>
                                </div>
                            </div>
</div>


{% endblock %}


{% block pagemenu %}
<li><a href="/forum/">{% trans "Back to Forum" %}</a></li>
<li><a href="/forum/lasttopics/">{% trans "Last Active Topics" %}</a></li>
<li><a href="/forum/mytopics/">{% trans "My Topics" %}</a></li>
<li><a href="/forum/myptopics/">{% trans "My Posts" %}</a></li>
{% endblock %}